#ifndef WALL_H
#define WALL_H

#include "tile.h"
#include "GenericButton.h"
#include "Player.h"

class Wall : public Tile
{
public:
	Wall(const LoadedParams* Params, int animationSpeed, int numFrames, int health, Player* player);

	void Draw();
	void Update();
	void Shutdown();

	void takeDamage(int dmg);
	void Upgrade(short wallType);

	void setHealth(int newHealth);
	int getHealth() { return curHealth;}
	bool isActive();

	void onMouseOver();
private:
	int curHealth, maxHealth;
	short state;
	void Upgrade();
	void Sell();
	void DisplayHealthBar();

	GenericButton* mUpgradeButton;
	GenericButton* mSellButton;
	Player* mPlayer;
};

#endif